Reorganise -mabi=sandbox handling and propagate to the back end.