Just tack it.... lol
It's not the filter that loosens, but the threaded stud. People have used loctite on the threads that go into the housing, but it will still loosen. I would do exactly what Ian had done in the past, with safety wire and a hose clamp.
You can either do that, or convert...