Back to the topic of deleting the charging lock solenoid, my first thought was to just remove the part completely and 3D print a waterproof cap to cover the open mounting hole on the back of the socket to keep the rain out.
I'm still learning BMW's wiring diagram conventions/quirks, but from what I can determine so far it appears that the solenoid returns a magnetic hall sensor signal when the plunger moves:
I'm sure that a simple circuit to fake the hall signal could be whipped up with a little effort.
It might be easier to just 3D print a shim to raise the solenoid mount up a smidge, so that the plunger cannot block the plug disconnect tab from moving.
It might not even be necessary to fake the hall sensor signal. I remember seeing either a web article or video somewhere about how you could prevent the lock from actuating by either not plugging the charge connector in tight or holding the plug release button while locking the doors. That action prevented the plunger from locking the plug, and then you could finish pushing in the plug or release the button to start charging without the cable being locked. The article was for sharing the plug at a public charging station (not bypassing the lock permanently), but it implied that the solenoid movement is not monitored by the car. Of course, I can't find this page/video again now that I want to look at it again.....