Added wait for hazard pointers in delete table function.
Check that the table has not died between fetch and set hazard pointer.
remove table rwlock, replace by using existing hazard pointer scheme
fix codepath for named tables to work properly again