Ran into this situation tonight and ruled in favor of the investigator this time (which was ultimately futile as Azathoth devoured the world as the clock struck 12 after his turn, oh well). Didn't notice a rule preventing this, but it did feel a bit fishy.
Adventure in this case was Tempest In A Teapot with the ORDERED tasks of {4 Investigation}; {Terror}; {Peril, Lore}.
First roll had sufficient investigation and the excess dice contained a Peril and a Lore. The investigator used dice to complete the investigation task, and then cast a double lock Spell, locking the Peril and the Lore. Next roll had a Terror. The following roll he used the locked Peril and Lore to finish the adventure.
I believe the rules for Focusing and Assisting are that they can't be done if the investigator has chosen to complete a task with dice, meaning he would have to roll all the excess dice the next turn. I'm not really clear how that relates to Spells and whether you can complete a task and lock excess dice when resolving a single roll. Does completing a task with the dice prohibit you from locking the excess dice from that roll? Focusing and Assisting: clearly not. Spells: well….. maybe?
I think I ruled it ok because it was coming down so close to the wire. The late game was coming up bonkers with double monsters on practically everything and the yellow die was triple-locked. It was 11 doom to 12 elders on his turn with two players ready to turn in trophies for elders right after him. Clock struck midnight; +1 doom game over. A classic finish, literally. If the rule got fudged, it certainly increased the drama to heighten the dramatic failure.