More refactoring. Context does not manage the SSL context anymore, just the mutexes.