Fix for deadlock with shared commit lock.