Needed due to part_filter_set() calls; without write lock this can race returning inconsistent results to 'sinfo'. Bug 2958.