Statistics for The VLT-FLAMES Tarantula survey: XX. The nature of the X-ray bright emission-line star VFTS 399⋆