Had a similar but not so severe experience between Delhi and Dubai with an A340 some years ago. We were in an Embraer Legacy at FL380 with very strong Headwind, which was straight on the nose. The aircraft banked fairly sharpish 45 degrees right, followed very quickly to the left. Autopilot came out, virtually immidiately.
Since than, seeing an aircraft on TCAS coming towards me, i offset by 2 miles as it is recommended anyway.
That was scary stuff.