[solo.commands.rescue] handle the inst_repo lock when needed
[solo.commands.rescue] simplify "generate" code