posixtm: move #ifdef'd tests into a new module