Clear controlling_vehicle flag when dismounting a player from a vehicle.

Fixes #1997, and potentially other related bugs.