In addition to closing the latch with door open, do the bonnet switch as well. . . . . If I remember correct, the switch is open circuit when bonnet is closed, so simply unplug it. That way you can get to internal and engine bay electrics which the car thinks it's closed & locked.
Defeinitely...