NSEU,
With ALTN selected and gear lever up, then restoration of hydraulics would cause the gear to go up; doors would be powered to open. System would be in its normal mechanical state therefore when the gear uplock operates to the lock position then the gear doors will close. The ALTN circuit is latched until the switch is positioned to normal (off).