fs: unlock tmpfs before free the file object
tcb will hold an invalid semaphore when CONFIG_PRIORITY_INHERITANCE is enabled
@@ -1444,6 +1444,7 @@ static int tmpfs_close(FAR struct file *filep)
* have any other references.
*/
+ nxrmutex_destroy(&tfo->tfo_lock);
kmm_free(tfo->tfo_data);
kmm_free(tfo);
return OK;
