test/stack: check lock-free implementation