- add locks when running callbacks and tests