tcp: make Buffered, Available return -1 when not available