Add locking for JsonRpcPrivate::m_callbacks