The path of a photon is a geodesic, which is similar to a line in Euclidean geometry or a great circle on the surface of a sphere. In a spacetime with curvature, it is possible to have two geodesics that intersect in more than one place. This is different from Euclidean geometry, where lines can intersect at most once. This can indeed happen, and it's called gravitational lensing, but it requires a third (usually fairly massive) object to provide enough curvature.
To see that this can't happen with just the two photons, note that it's possible to switch frames of reference to a frame called the center of mass frame, in which the total momentum is zero. In your example, if one photon is going in the positive x direction and the other in the positive y direction, in the original frame $\text{F}_1$, then the center of mass frame $\text{F}_2$ will be defined by an observer who is moving, relative to $\text{F}_1$, along a line at a 45-degree angle between the x and y axes. The speed of $\text{F}_2$ relative to $\text{F}_1$ will be less than $c$. An observer in $\text{F}_2$ will see the two photons as moving off in opposite directions. As they separate, their gravitational attraction may cause them to be red-shifted, but this redshift will approach some finite limit. The photons will not stop and come back together. Therefore, back in $\text{F}_1$, the photons will be deflected, but not enough to reunite.
All of the above assumes that the photons have energies small enough so that the curvature they create can be treated as a perturbation on a background of flat spacetime. Only under this condition does it make sense to talk about things like global frames of reference. When the gravitational fields are very strong, we can get qualitatively different phenomena, such as geons or a kugelblitz.
Related: Are there bound states from light-light or gravity-gravity scattering in general relativity?