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