(core+) asynch- race fix, OSX workarounds for terrible posix semaphore support (no surprise there)