- Edited
nsreubkvne 'm not sure how reliable the accelerometer on the phone really is especially after a few years of using it.
I would personally set my phone up to lock itself and/or reboot when it was no longer in contact with a bluetooth device on my person i.e. at a distance. The on-person device could be a cheap bluetooth earphone (no need to use it; it could be in a pocket) or an even more minimal bluetooth device.
Invoking Airplane mode and thus shutting off bluetooth and breaking the connection will secure the phone.