migration_init: Fix lock initialisation/make it explicit