Remove unnecessary locking.

[#79120166]