Ripping and compression are two distinct tasks; the CD is ripped to WAV, and then compressed.
LAME is a compressor, not a ripper. Therefore hunting of the CD drive during ripping is nothing to do with LAME. Your problem is caused by a faulty disc and the steps the MB ripper takes to try to do a perfect rip.
So I would look at the MB rip settings. If you have enabled the most exacting rip settings, so that it tries very hard to eliminate any rip error, it will keep trying to read the disc to eliminate the error.
Less exacting rippers (e.g. WMP) and CD players will just shrug and continue past the error...