Hold a cache lock keyed by database UUID across the active-import check and remote_process so two concurrent requests cannot both queue a restore against the same database.