Sometimes this function never returns when executed on Symbian.
It's been reproducible on Symbian3. Higher up in the stack this causes the browser to freeze when loading websites using https.
Investigation shows that the secondary thread that retrieves the certificates hangs when existing (the thread). The backtrace points into the destructor of CActiveScheduler, which appears to call something that hangs. It may be a lock, maybe some stale active object?