Prevent updating a hash after it has been calculated.