process: move functions from libct.go

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Makefile
libct: rework child file descriptors
don't close
fix