win32: Replace LOCK_* constants with macros

Change LOCK_* from constants to preprocessor macros, because that's what
the code exporting them to javascript expects.
Merge pull request #31 from bajtos/fix-windows-compile-errors

win32: Replace LOCK_* constants with macros