work_restart is reset within the queued hash work loop.
Remove unneeded function and checks in avalon write code.