Wal-Mart loses North Carolina tax refund case