Development of a prototype GEM TPC with a gating grid for an H-dibaryon search experiment at J-PARC