corking: use bool instead of int

We have a boolen condition, so use bool instead of doing stupid
things with ints.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>