Demonstrates that unmounting a filesystem with MNT_DETACH allows open file descriptors on that filesystem to be inherited by new children of processes than already held them open. I believe this is expected behaviour from the definition of the flag in man 2 umount2.
Steps:
$ gcc -o forkme forkme.c
$ mkdir /tmp/real /tmp/bind
$ sudo mount --bind /tmp/real /tmp/bind
$ ./forkme /tmp/bind/foo
[ wait for confirmation that it has opened & written to the file ]