Fix test of subdirs to add small delay after creating the subdir.
Get debug flag from command line in test.
Fix race condition on termination of filename handlers by waiting for each to finish.
Extend test to touch file twice in latency period.