Fixed shared counters access.
Merge branch 'develop' of https://github.com/Starcounter/Starcounter into develop