When the door lock modules are working correctly, a MkIV that has the doors opened via key fob will self-lock after 60(?) seconds if one of the doors isn't opened prior to that time. It serves as a security feature when the fob was pressed by accident. When a door lock module is no longer working correctly, such that it is recognized as "always locked," the car will self-lock as described above, even after the door with the faulty module has been opened, because the car never recognized that a door had been opened.
The fix is to determine the fault with the door lock module (or associated fault) and fix (see the gigantic thread on the topic).
Yes, you can use VCDS to alter how the car behaves in response to key blade or key fob options, but someone else would have to remember what all these are for the Mk IV. The Ross Tech wiki will help.