lock before read
Fix session lock
Merge pull request #1 from cvasseur/fix-session-handler

Fix session handler
Remove empty lines
Merge pull request #3 from cvasseur/master

Fix session handler lock