osx_write: kill superfluous semaphore code