test: report test duration in TAP progress
stream_wrap: remove unused arg from WriteBuffer

WriteBuffer was changed in the cork/uncork implementation (60ed2c54).
The unused argument has been removed.
stream_wrap: fix memory leak on early return
test: don't use total_seconds() because of py2.6