go-fsnotify/fsevents — pull request #7 by wadey (2014-12-22 20:38:36+00:00)
Title: call runtime.LockOSThread

This is to ensure that the goroutine doesn't switch OS threads before it calls CFRunLoopRun. I've seen issues with this before when using CFRunLoopStop/CFRunLoopRun multiple times. Since the current code only calls Run once, It's possible it will never run into issues but this seems like an easy defensive change.