§ 131-a. Office to be necessary party to certain proceedings. The office shall be made a party to all actions and proceedings affecting in any manner the possession, ownership or transfer of a registration, license or permit to operate within a municipality and to all such injunction proceedings.