Added interlocked operation in atomic long