Robert Rock was two strokes clear at the top of the Scottish Open leaderboard after a second day that saw the Gullane course record twice broken in the cool and calm conditions.