Remove unnecessary locking.