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
analysis: make CU object used in --pme a const object