Make last_context_id_ atomic.
Add mutex for context id assignment.
Merge branch 'develop' of https://github.com/vrsys/guacamole into develop