Advance Auto Parts’ stock falls after a quarterly loss, and release of a plan to close more than 500 company stores and four distribution centers.