Close the file with correct fd if gettattrs fails.

Also, removed setting the file descriptor when we return failure.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Marc Eshel <eshel@us.ibm.com>
Merge branch 'tp/dbus-fix' into ibm_next_20_tmp
Merge branch 'tp/smnotify_2' into ibm_next_20_tmp
Merge branch 'tp/gpfs-close' into ibm_next_20_tmp