locks and unlocks given array of vehicles