I grew up in Austria and live in Germany (so two neighbouring countries to Switzerland) and here it is mandatory to have at least smoke alarms. Fire extinguishers are mostly only needed for public buildings and server rooms and such. Germans especially take their "Brandschutz" very seriously especially regarding emergency exits etc.
However in the end you are responsible for your own safety. If you are in a room with a lock, make sure you don't lock yourself in. Locking people in is a bad idea regardless of situation (and I am pretty sure it is illegal to do so against their will).