Twitter exec quit when told to install illegal locks that risked lives