Enable building tests for windows
* src/debug.cpp: Use platform indepentent gpgrt_locks. * src/main.c (initialize_main): Drop mutex init.