feature/session (#3073): Rework locking mechanism & add Redis driver