net: fix leak in test.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
net: add async operation helpers.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>