do not use CRT locks in system API hooks