This limit is for extension (VLO extension)only. It's allowed to fly above this altitude with gear down as per fcom 2.04.25 up to FL350. Retraction however is not limited to 21000'.
Flaps are limited not to be extendED 20000', so no difference between extension or retraction.
It's indeed an A330.
Thanks again!