MDL-67594 core_lock: Remove supports_recursion() usages