Probably one of the microswitches in the doors or the trunk does give a signal back to the GM, that one door is not locked. That is why the doors unlock again. Or the microswitches are not fitted exactly or are misoperating.
The later GM's do not have this function anymore. I copied for you something:
You are probably getting a wrong signal from one of the microswitches.
You are looking for the better function of the GM p/n 61 35 8 356 095 and others used from production date 09/91, which has the following features:
-Repeat and time interlock for headwashers, time interlock 3 min.
-headlight washing pump at fifth windshield washing after time interlock
-intensiv washing pump operating at reduced time from 3 to 2 seconds
-minimum interval for wipers reduced to 2 from 3 seconds (programmmable)
-increased wiper contact pressure during windshield washing now also provided
-previously the GM would react opposing signals (e.g. an unlock signal while trying to lock, as with a defective microswitch) by carrying out the first command (e.g. locking, followed immediately by unlocking). Repeating the first command then results in carrying out the command, e.g. try to lock again, and locking is now carried out. This function (Asynchronious Position)is omitted in the NEW GM.
-After unlocking is performed due to crash sensor activiation, the locking command is now reactivated by double-locking with the key from either side (driver or passenger door).
-The "one-touch" operation of windows has been expanded to all 4 windows in OPENING direction. Drivers side has one touch in both directions
-Sunroof is not already in the tilt position.
-switch off delay of the interior lights after entering the vehicle and closing the driver's door reduced from 20 to 15 seconds.