encoder: fix handling of --no-wpp and either --pmode or --pme

in --no-wpp mode, we need to allocate TLD for workers and frame encoders