Fix connect/accept state when SSL is created with a context that has an accept callback defined (e.g. Ruby).