Pazos, I tested it on the Onyx, and it works. Back-ing out of goldendict no longer drops out of koreader. It remains in Koreader, which is the functionality I required.
FYI when in Koreader, the back button still leaves Koreader, even if back button disabled.
But this version works fine for my uses. Much appreciated. Thanks for going to the trouble of changing and compiling it for me