Move thread name handling to Roxen.pmod to make it easier to use from other pmods. Adjust existing calls and add compat stubs.