Some of the older tricks actually have keys to unlock the side doors.There are door locks on the trucks. At the very bottom of the box where the handle is. Locks would not be practical for this type of vehicle but they are there.
But you are correct that you can lock the doors from the inside.