Rory McIlroy's luck changed for the better in the early stages of his second round in the 141st Open Championship at Royal Lytham on Friday.