diff3: set O_CLOEXEC on pipes
This avoid leaking pipe fd in children and simplifies the code
MFC After: 1 week
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D56120
(cherry picked from commit 945e60e018c287f8097f3ee4a30ccf4921845aa1)