Locked out: When and how to let migrants move again