resolved fdo#73235 initialize reference flags

References initialized via ScSingleRefData::InitAddressRel() and
ScComplexRefData::InitRangeRel() didn't have their flags memory
initialized, leading to tab/col/row reference may had been flagged as
deleted or other quirks.

This also fixes fdo#72605

Change-Id: If5e9f4c3a9171f068f7986d2bd6b4b312df3c37e
(cherry picked from commit 70abaf45eac49405aee70bbad13bcda75d8a9c15)
Reviewed-on: https://gerrit.libreoffice.org/7634
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>