So just to clarify, is the requirement here to get notified that you forgot the phone in the car OR to prevent the car from locking?
If first, it's not Tesla's problem to track the phone - brings a lot of unnecessary complications.
If latter, then it's already doing it: