Synchronous optical pumping of quantum revival beats for atomic magnetometry