Clean duplicate functions in HashTable

There were two HashTable delete function (HashTable_Del and HashTable_Get_And_Del).
They had the same functionality but different parameter order.
I removed the second one since it was called only once.
Fix bug WriteLock is taken twice - Deadlock

In state_wipe_file the lock is taken with trylock and in case of success the function
try to take it again which lead to Deadlock