Made ctapi true thread-safe. Specifically create/destroy of the on-demand created mutex is now thread-safe.
Merge branch 'master' of https://github.com/sc-hsm-clone/sc-hsm-embedded