added futex handling for atomic<int> vars and alikes