perhaps converting use from BEGIN { require Module; import Module } to CHECK { require Module; import Module } can do the trick. But the drawbacks are obvious.
Depending on when the coderef is used perhaps you can pass a soft reference. But then you have to no strict refs within the used module, and any if (ref $whatever) tests will fail.