plm base: move flag inside the #if in which it is used

Avoid a compiler warning by declaring the tflag only inside the #if in
which it is used (i.e., if hwloc support is built).