Believe me it wouldn't be teddies in my pram!!
ok so here is the reason, when you remove the key from the ignition and don't open any doors, the windows, mirrors and sunroof still work, but as soon as you open any doors (i just thought drivers door but testing last night its both) they stop functioning, now i know there is auto closing of the windows and sunroof...but not the mirror fold, by having a 20 sec delay on the door switch only when ignition is switched off (remember as soon as you remove your key the lights would come on anyway, so doesn't matter about the door switch for that period) you could pulse the mirror fold switch from the locking via a latching relay and as long as its within 20 secs the mirrors would fold with the locking of the car.
so there you have it.