add table lock on snapshot, during taking snapshot