It might happen that the maskFrame is shared by several instances of
FrameSvg. In that case, do not wreck maskFrame and instead act as
follows:
* deref it
* try to lookup a matching frame in the shared frames
* if there is the matching frame, use it
* otherwise create a new one