adapt sfx2 UndoManager test to renaming from "click" to "press"

RID_STR_ACC_ACTION_CLICK in efb23f29983f87104a684e7fab00b84fc59d131d

Change-Id: If684816602db38fa87b6272c0491ab2ac910aece
Avoid accessing freed memory and freeing already freed resources

Seen in smoketest a 4.2-based branch, but might perhaps happen in master
too. Should not hurt in any case to be more careful. ImplFreeSalGDI() is
called both from SalAbort() and from DestroySalInstance().

Change-Id: Ifac37e8ecfb432848bd3451dbda8634c59a06fba