Fix Incorrect ActiveSessions counting
Since multiple threads may access the same uid key if the same user has multiple sessions, make sure that the write is thread safe
Fixes: EOS-5526
Edited by Abhishek Lekshmanan
Since multiple threads may access the same uid key if the same user has multiple sessions, make sure that the write is thread safe
Fixes: EOS-5526