(Reuters) - Costco Wholesale Corp's quarterly profit scraped past estimates, helped by a hike in membership fees, but a fall in gross margins fueled concerns of an intensifying grocer price war, sending shares down 3.6 percent in after-market trading.