Make sure there is an openfd before unlocking deleg.

Signed-off-by: Jeremy Bongio <jbongio@us.ibm.com>