Adds lazy create context to getContext() method

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