The strong CP-problem and the pattern of quark masses