Pose is not guaranteed to be existing in object, so can't be used for selection flag clear. Use bones themselves for that.