Preventing unwanted lock actuation, e.g. unlatching, at the moment of collision by means of inertial forces