stream: do not leak `alloc_cb` buffers on error

Always pass previously allocated (if any) buffer, when calling
`read_cb()` on error.
win: fix buffer leak on error in pipe.c
Merge remote-tracking branch 'origin/v0.10'

Conflicts:
	src/win/pipe.c
build: freebsd link with libelf if dtrace enabled
unix, windows: removed unused status parameter

async, timer, prepare, idle and check handles don't need the status
parameter.