[lib] add local environment variables to run_proc()
[app/my_affine_sift] limit the number of parallel threads