Improve the error message for GetX509Certificate().
Fix deadlock in WorkQueue::Join().
Build fix.