lock migrations table