Add locking to url loaders