mon: fix check for primary-affinity feature bit, and fix a race in similar checks