Put claim delegation checks in a separate function

Take claim delegation checks from nfs4_op_open(), and create a new
function open4_claim_deleg(). No functional change.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Trivial changes in open4_claim_deleg()

Removed utfname validation checks as nfs4_utf8string2dynamic does the
same. glist_entry() never returns NULL, so removed that check!

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fix a logDebug accessing incorrect utf8string with CLAIM_DELEGATE_PREV

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fail requests with bad stateid in CLAIM_DELEGATE_CUR claim type

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>