Fix virtual can backend usage in multithreaded environment


Protect the creation and start of the VirtualCanServer with a mutex,
so that no race conditions can occur when two QCanBusDevices with qtvirtualcan
backend are instantiated in the same process in different threads.

[ChangeLog][CAN Bus][Virtual CAN] Fixed a race condition
during creation of the VirtualCanServer when two QCanBusDevices
are instantiated in the same process in different threads

Pick-to: 6.8 6.7 6.5
Change-Id: Ic86c8ac1b83b4d7cca43124653ae095dfdaf5655
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit553ed89c2145cf79a3b30ec7c664281ea169001d
parent53db83a52a4ed031e65dc45924f5570387b83827
authorTobias Koenig <tobias.koenig@kdab.com>
committerTobias Koenig <tobias.koenig@kdab.com>
commit timeThu, 6 Jun 2024 07:38:40 +0200