tmpfs_free_tmp(): explicitly assert that tmp is locked
(cherry picked from commit 9f200bc47b5d8445d91d51f6dfd6af0f1fbbe354)