[handle] make sure to unlock config handle on failure
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>