[fix] make test libs dependencies of check rule

We need to make util libraries in tests dependencies of the check target
to ensure that they are only built during `make check`. Otherwise
automake will build them during make, and before excit, breaking our
global LDFLAGS for tests will break since excit is not built yet.
9 jobs for distcheck-ci in 6 minutes (queued for 1 second)
Status Job ID Name Coverage
  Style
passed #76616
nix kvm
clang-format

00:00:02

passed #76615
nix kvm
repoquality

00:00:03

passed #76617
nix kvm
style:docs

00:00:37

 
  Build
passed #76622
cuda
make:chimera

00:00:55

passed #76618
nix kvm
make:generic

00:01:03

passed #76621
knl
make:knl

00:04:00

passed #76619
nix kvm
make:out-of-tree

00:01:08

passed #76620
nix kvm
make:valgrind

00:01:52

 
  Distribution
passed #76623
nix kvm
distcheck

00:01:21