SimObject: allow modules in subclass definitions
SimObject: allow modules in subclass definitions

In particular, this avoids crashing when you do
an import (like "import pdb") inside a SimObject
subclass definition.

cancro7/gem5,yb-kim/gemV,yb-kim/gemV,qizenguf/MLC-STT,gedare/gem5,HwisooSo/gemV-update,joerocklin/gem5,sobercoder/gem5,SanchayanMaity/gem5,gem5/gem5,qizenguf/MLC-STT,markoshorro/gem5,KuroeKurose/gem5,Weil0ng/gem5,zlfben/gem5,qizenguf/MLC-STT,gedare/gem5,markoshorro/gem5,joerocklin/gem5,TUD-OS/gem5-dtu,markoshorro/gem5,samueldotj/TeeRISC-Simulator,Weil0ng/gem5,TUD-OS/gem5-dtu,powerjg/gem5-ci-test,joerocklin/gem5,yb-kim/gemV,KuroeKurose/gem5,sobercoder/gem5,rallylee/gem5,HwisooSo/gemV-update,samueldotj/TeeRISC-Simulator,samueldotj/TeeRISC-Simulator,briancoutinho0905/2dsampling,zlfben/gem5,gedare/gem5,cancro7/gem5,gem5/gem5,rjschof/gem5,KuroeKurose/gem5,zlfben/gem5,yb-kim/gemV,Weil0ng/gem5,rallylee/gem5,TUD-OS/gem5-dtu,kaiyuanl/gem5,aclifton/cpeg853-gem5,gedare/gem5,zlfben/gem5,KuroeKurose/gem5,aclifton/cpeg853-gem5,rallylee/gem5,kaiyuanl/gem5,briancoutinho0905/2dsampling,gem5/gem5,HwisooSo/gemV-update,powerjg/gem5-ci-test,HwisooSo/gemV-update,TUD-OS/gem5-dtu,samueldotj/TeeRISC-Simulator,qizenguf/MLC-STT,rallylee/gem5,rjschof/gem5,zlfben/gem5,briancoutinho0905/2dsampling,briancoutinho0905/2dsampling,briancoutinho0905/2dsampling,rallylee/gem5,aclifton/cpeg853-gem5,austinharris/gem5-riscv,rjschof/gem5,aclifton/cpeg853-gem5,gem5/gem5,joerocklin/gem5,markoshorro/gem5,HwisooSo/gemV-update,kaiyuanl/gem5,aclifton/cpeg853-gem5,powerjg/gem5-ci-test,cancro7/gem5,kaiyuanl/gem5,cancro7/gem5,briancoutinho0905/2dsampling,austinharris/gem5-riscv,rjschof/gem5,yb-kim/gemV,gedare/gem5,SanchayanMaity/gem5,SanchayanMaity/gem5,gem5/gem5,austinharris/gem5-riscv,joerocklin/gem5,kaiyuanl/gem5,markoshorro/gem5,qizenguf/MLC-STT,qizenguf/MLC-STT,yb-kim/gemV,Weil0ng/gem5,markoshorro/gem5,powerjg/gem5-ci-test,TUD-OS/gem5-dtu,joerocklin/gem5,powerjg/gem5-ci-test,rjschof/gem5,austinharris/gem5-riscv,sobercoder/gem5,SanchayanMaity/gem5,Weil0ng/gem5,sobercoder/gem5,KuroeKurose/gem5,KuroeKurose/gem5,austinharris/gem5-riscv,aclifton/cpeg853-gem5,samueldotj/TeeRISC-Simulator,joerocklin/gem5,SanchayanMaity/gem5,sobercoder/gem5,SanchayanMaity/gem5,yb-kim/gemV,gem5/gem5,HwisooSo/gemV-update,briancoutinho0905/2dsampling,yb-kim/gemV,HwisooSo/gemV-update,Weil0ng/gem5,rjschof/gem5,samueldotj/TeeRISC-Simulator,aclifton/cpeg853-gem5,samueldotj/TeeRISC-Simulator,cancro7/gem5,austinharris/gem5-riscv,rallylee/gem5,powerjg/gem5-ci-test,zlfben/gem5,kaiyuanl/gem5,kaiyuanl/gem5,TUD-OS/gem5-dtu,gem5/gem5,gedare/gem5,markoshorro/gem5,cancro7/gem5,joerocklin/gem5,austinharris/gem5-riscv,rallylee/gem5,KuroeKurose/gem5,sobercoder/gem5,SanchayanMaity/gem5,TUD-OS/gem5-dtu,powerjg/gem5-ci-test,qizenguf/MLC-STT,cancro7/gem5,rjschof/gem5,Weil0ng/gem5,zlfben/gem5,sobercoder/gem5,gedare/gem5