Masters thesis if course credits have expired
Could you challenge the exam in all of these courses? If not, then you might have to retake the courses. To answer your question about ways to work with someone to do research without being enrolled in a university you can approach the department asking if you could be a research assistant. Its not too common so you might have to try multiple times, but my department has one researcher who has never been enrolled at my university.