[feature/alt-session-storage] Fix Redis storage functions

Debug and fix various problems with the Redis storage
to pass the session storage tests.

PHPBB3-11705