acc: make sure we we don't write the same record twice

this scenario appears when using multi bye leg support and there are no legs

(cherry picked from commit 48050eeab8e6c2c496e5a746e07a1092a6a523e0)