hnetd: more racecondition fixes