fix sql lock run time