KXTF9 HAL: close file descriptors when we're done with them

The failure to do so was leaking file descriptors, eventually causing
all of userspace to fall over with EMFILE errors.  Thanks to XDA user
webyrd for reporting.

Change-Id: I4dba0cde755aa6381e0b71406628fa724276363a