Improved performance of LockTable by decreasing the critical section for the tableMutex.