util: Shut down Perfetto before driver unload
Shut down Perfetto before unloading the driver to fix a crash caused by an internal Perfetto thread that kept running after dlclose() took away its code.
Closes: #4909 (closed)
Edited by Sami Kyostila