test-strstr: use memory fence, when possible