Mount traps are core elements of the implementation of autofs in Linux, and "any directory provided by a filesystem can be designated as a trap" (per autofs4.txt); from kernel space, one'd check if "a dentry has the DCACHE_NEED_AUTOMOUNT flag set, or if the inode has S_AUTOMOUNT set"; what can be done from userspace?
(Related, but not the same, question is How can I see automount points in Linux?).