task: Adjust return from syscalls

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>