show_table_lock function added