M3x0.6 is a specialty thread you can get taps, dies, screws, and nuts for; they're used for indexed machine tooling to hold the bit.
M2.5, #4-40, and M3 are so close in size that I tend to use a known-size screw or bolt to test.
The nearest UTF is #4-40, at 2.85mm outer diameter and 0.635mm pitch. It's quite commonly used in enclosures, especially in PC/server motherboard standoffs, although the standard brass and plastic standoffs are also available in M2 (M2x0.4), M2.5 (M2.5x0.35), and M3 (M3x0.5). I use all four, #4-40, M2, M2.5, and M3. Most metric machine screws I have have outer diameters somewhat under the nominal.
If I were to guess, I'd say it was a #4-40 standoff where someone cross-threaded an M3 screw into, or vice versa.