Electronic door locks failed, trapping the driver and highlighting risks of over-engineered safety features. Regulators and investors question Xiaomi’s engineering, similar Tesla issues prompt ...