gh-821: Put migrations table check inside lock (#830)
gh-821: Put migrations table check inside lock (#830)

* gh-821: Put migrations table check inside lock

* gh-821: Move scheme creation under lock
salsita/node-pg-migrate,salsita/node-pg-migrate,salsita/node-pg-migrate