Pinched by Amazon's ascent and e-books' growth, the #1 U.S. bookstore chain has closed many stores in the last decade. But the closings are getting fewer and fewer.