hashref_locked was only added to Hash::Util in Perl 5.18