[PATCH 2/4] msvcr100: Use scoped_lock internal buffer when locking critical_section