migration: Add an ability to ignore shared RAM blocks