Removed the unused function acquire_non_locking_lock.
Removed the useless max_patches_size_ratio variable and affiliated code.