The agency said it would fence off a park at the center of a neighborhood with a vibrant L.G.B.T.Q. community during WorldPride, a major international celebration.