Selection and mutation effects on equilibrium and stability of X-linked recessive diseases