Is there a way to update navmesh only in certain instances?

I have a system in which AI will run through a maze in which locking a door behind you alters their path-finding.Dynamic path-finding works pretty well, except that the AI will change course without visually sensing that a door has been locked.

It’s important to my game that the AI behaves similarly to a human in the same position, and this pathfinding omnipotence throws a wrench in that. Is there any good solution using blueprint?