Lock before destroy hash