Adds lazy create context to getContext() method

Sometimes we need to work with the context object before a socket 
is opened e.g. to create poller object.