tst_QCoreApplication: fix the QT_PLUGIN_PATH tests on Android
The two tests set QT_PLUGIN_PATH and left it set, and Android
finds its platform plugin only through the library paths, so
later tests that create an application failed. Restore the
variable when each test ends.
libraryPaths_qt_plugin_path_2() also used /tmp as its valid
path, which Android 13 and older don't have. Use the temp
path instead.
Pick-to: 6.12
Change-Id: I5a615e6d8fdbbfca9d5e8f00f30744556e1c62f2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>