"Isn’t there also some issue with Magnetic Compass errors if the gear lever solenoid remains enabled?."
What type of aircraft, ZFT? As far as I know, most gear lever lock solenoids are energised in flight... and release on touchdown (and if power is lost to the solenoid).
Rgds.
NSEU.