[[ Cocoa ]] Various attempts to get blocking wait to work correctly.