This just seems flat out wrong, a `wchar_t` is 16bits under Windows and `thr.owned_mutexes` is a `uint32_t` why would you change this in the first place?