KSP: fix module patching in preloaded case

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>