Add locking to CallbackConfigParser