Fix mlock()/munlock() return value on Windows