Fix #498, do not show cell stats when notebook is locked