Improve locking and initialization of primary_keys table
Lock multiple tables in one operation if needed
Bump version
Merge pull request #196 from llh1/57227808_fix_race_conditions_with_mysql_lock

57227808 fix race conditions with mysql lock