[PATCH v6 2/3] server: Use setpriority to update thread niceness when safe.