Starbucks is ending its open-door policy, which allows anyone to use its restrooms or hang out without making a purchase.