Pipe: handle accept and connect syncronously

Signed-off-by: Samuel Just <sam.just@inktank.com>