threading: include process id in name passed to sem_open() and sem_unlink()

This should prevent race conditions between x265 processes spinning up on the
same CPUs, and generally make name conflicts very rare.
param: simplify checks of max ctu size, improve abort message
TComSlice: nits