Make use of locks when accessing the sessions map