Fixed multithreading access to capabilities.