She wasn't "locked" in her car. She had every opportunity to use the door's emergency release to exit the car, but she chose not to because she was afraid of the possibility of damaging the car (and so that she could film a TikTok.)
It is however a design error that the car doesn't require all occupants to exit the vehicle before starting the update.
https://jalopnik.com/a-tiktoker-got-trapped-inside-her-115-degree-tesla-mode-1851404777
