How to lock/unlock statistics on a table