Nonperturbative black hole entropy and Kloosterman sums