In the armature edit mode 'select similar' operator, replace 'select by layer' with 'select by bone collection.