code: Frame updateFrame(Frame target, Frame src) {
      if (src != target) ltrash(src);
      return src;
    }
docs: Helper to update a Frame and adding it to the local trash at the same time
  @param target Frame referece, to be overwritten
  @param src Newly made frame, to be deleted via local trash
  @return src