getReferrers indeed uses the phpcr database, it will only see flushed data.

maybe things will become easier if you build this whole thing on the postFlush event and do another flush?