[REG2.066a] Issue 12859 - Read-modify-write operation for shared variable in Phobos

https://issues.dlang.org/show_bug.cgi?id=12859