Set CPU-thread affinities on BSD.
Fix potential for out-of-bounds lower_bound in render_world_props.
Work around OS scheduling issues with uMP.
Clamp num_threads argument to ump_init().