Use core.atomic.atomicOp to mutate shared variables

prevents deprecation warning since 2.066(rc):
Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"+="(m_sPendingCount, 1) instead.