Re: lock layer. I think I may have addressed this several times on this forum.
It is simply not possible with the current architecture. It is one of major drawbacks in the way that the interface was designed, and the only thing we can do is re-write everything from scratch. If it was as simple as writing a module it would have been done a long time ago.
As usual (and against my opinion, trust me when I say I hate being an apologist) I am not allowed to talk about what is planned, but this issue will be addressed in the future, as was done when we included it in the first release of MadMaPPer.