fix for GRAILS-10171 "Compilation for class reload changes happening in forked JVM, should instead happen in foreground JVM"