I answer my question. The goal was to minimize the time spent by several processes trying to access obsolete mount points. Typically, system calls will be completed within a subsecond. Blocking outdated stocks for 10 seconds or even, say, 3 seconds was unacceptable, because these calls are made in several places, several times and the delay time accumulates. So, I ended up writing a monitoring process that checks the mount every n seconds and disables them if they are not available. I also read information from my configurations, saying which file systems should be deleted (mounted) and check the mtab file - if they are not there, this is an error. The mtab code check completes within a subsecond. Took a day or two to implement, but works great for me.
source share