Simplified imports.
Small optimization - locks are marked as synced before the sync operation.