Run Coveralls only in CI environment
added a mutex
improving tests
updated changelog
Merge branch 'feature/thread-safety' into develop
Bumped version to 4.0
Merge branch 'release/4.0' into develop