libct: ct -- Return NULL on error paths

If we've faied in some of xmalloc calls
we better to return NULL instead of some
offset in zero page.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>