Fix issue with CreateSession blocking indefinitely

Added a new option to the cluster configuration so the user can define the timeout for starting up a session.

Added a test case to make sure this issue doesn't appear again.