test: explicitly use the capture thread id.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>