Fixed multithreading access to capabilities.
Merge pull request #124 from maksimov/develop

Fixed multithreading access to capabilities.