Base on the fact that LuckyPatcher uses odex replacement for its hacking purpose. I think the modest way to defeat its current implmentation is to compile your important piece of code in separate dex, and load it via DexClassLoader.
Ref: http://android-developers.blogspot.pt/2011/07/custom-class-loading-in-dalvik.html