Similar experience as you BowrieMG. I accidentally left my keys in my coat in the boot. I then closed the tailgate with them inside and when I went to lock the car by pressing the front door handle button, the car wouldn't lock. Obviously to prevent the key being locking inside the car. Therefore operating as the software should.
I wonder if the software has a bug. Maybe if the car is ALREADY locked and THEN the tailgate is opened, the key left in the boot and the tailgate is shut, if the software doesn't prevent the tailgate closing and locking. If that's the case, the software has yet another bug. In this scenario the tailgate should be prevented from shutting/locking.