If it's very safe, a simple solution is to leave your phone inside your car, if you don't need it or have a second phone.
So the car will not lock, but still will go to sleep mode.
Now, there is the oppposite situation, where you forget to take your phone with you after parking you car.
So then any one could seat inside your car and drive it !!!