Sales of new homes posted another large gain in April as buyers rushed to sign contracts before government tax credits expired.