Added experimental CVDisplayLink code for OS X.
Added a mutex.