libknet: rework knet_link_enable into knet_link_set_enable

make it thread safe and fix all return codes (ret vs errno)

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>