privateenv: Remove sharing of user environment between threads.
privateenv: Use POSIX keys instead of task variables.
samples/base_mp: Include missing header file