x11: make the tool lookup dependent on the hw id as well

Tools on the same physical item have the same serial number, so the eraser
and the pen part of a single pen share that serial number. With the current
lookup code, we'll always return whichever tool comes first into proximity.

Change the code to use the hw id in addition to the serial number, this way we
can differ between two tools.
2 jobs for wip/wacom-tool-type-from-property-3.24 in 9 minutes and 43 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #170599
build

00:09:43

manual #170600
win32 allowed to fail manual
msys2-mingw32