fixed a bug locking multi tables

Signed-off-by: songyang <waoywssy@gmail.com>