The surface of guacamole turns brown by reacting with oxygen in the air. The guacamole that is directly under the pit won’t turn brown because the pit prevents air from getting to it. Otherwise, the oxidation process turns the exposed surface brown, just as it does on apples and other fruits. You’ll have much better luck protecting the surface from air by pressing aluminum foil or plastic wrap on it.