build: fix tst-static-thread-variable.so dependencies

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>