QCanBusDevice: use the mutex when accessing incoming frames size


Amends commit 45462071b577cf64a632ab7b433c0b5f2c60e5a9 which added
the mutex to guard access to incomingFrames, but didn't update this
getter.

This requires to mark the mutex as mutable, because we need to lock it
in a const method.

Pick-to: 6.9 6.8 6.5
Change-Id: Id2dbefc0db537ace57ce166e6a102671e6751cd5
Reviewed-by: André Hartmann <aha_1980@gmx.de>
commit52857160c25a0bcdc19163e1923d06fd99922135
parentc4ce5a9818179baa06d72227beb5df8e1931f0da
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 23 Apr 2025 12:18:17 +0200