significantly improve refresh_acctinfo()

Signed-off-by: William Rockwood <wrockwood@tadl.org>