Yeah, there's just some things that are beyond me until Carbine adds more support for mouselock mods. I think I can solve most other problems, but the best I may be able to do with AoEs is just a hard "On 4 pressed, unlock. On pressed again, re-lock." Which is prone to a lot of problems, but maybe better than nothing.
Yeah it seems that solution is a bit to general and I could only imagine what problems it would cause. If there is enough demand for it perhaps you could try it and make the setting optional. If you do decide to try this one out on a beta version let me know :) I'll test the shit out of it haha