mac-specific locking