build: Only run tracker3 test when enabled

Previously -Denable-tracker3=no would not build the tracker3 plugin but
if the dependency was found on the system the unit test would still be
enabled (and would fail).
1 job for master in 5 minutes and 15 seconds
Status Name Job ID Coverage
  Test
passed build_stable #1255006

00:05:15