Avoid read-modify-write on shared counter (fixes compilation on DMD GIT master).