HPCC-10106 Persist should ignore other persists when determining rebuild

Previous fix was incomplete, and would fail in multipler persist cases, due to
global state issues in eclagent.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10106 Persist should ignore other persists when determining rebuild

Fix preexisting memory leak in seldom-used branch, spotted in code review.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4911 from richardkchapman/persist-allfiles-fix

HPCC-10106 Persist should ignore other persists when determining rebuild

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>