locking on osx