os: use syscall.Pipe2 on Linux

Update issue 2656

R=golang-dev, iant, minux.ma, bradfitz
CC=golang-dev
https://codereview.appspot.com/7065063

Committer: Ian Lance Taylor <iant@golang.org>