Collapse dynamics of a self-magnetized Langmuir plasma