locks added to mysqlstat-tables
tests added