mtdutils: restore_raw_partition: remove rouge file descriptor

*call to open() was replaced with fopen() and should have been removed.
*move call to fopen() to safer location where it will be closed before
potential return.
Change-Id: I4f40b3a673c1612a229af30881973e100388ca47
1 file changed