Barrel photon detector of the KEK KL0→π0νν¯ experiment