Trying to fix lock elision problem