Fix osGetTime(), this time for real (also: race condition fix by mtheall)