Fix a SEGFAULT due to a NULL point deref. Also fix nfs4_write and
nfs4_read to handle delegation state correctly

Signed-off-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>