Incorrect lock type for OS X teardown_lock