Fix nfs4_read_recov_clids() looping with dot or dotdot entries

The code doesn't go to the next entry. It just processes the same entry
in an infinite loop. Changed the code to use "for" loop, and removed
readdir calls inside the loop that advance to the next entry.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Return PATH_DOWN only if the client has active delegations.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Close the created file.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Use the clientid from deleg_entry.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
Add a missing closedir() call

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>