Created by: dagurval
Adding a mutex around the subscription lists allows for remove of use of mutable self references.
cargo test && ./contrib/run_functional_tests.sh