introduce reference counter for static ssl mutexes