Implement objc_sync_enter and objc_sync_exit if they're missing.