8145981: (fs) LinuxWatchService can reports events against wrong directory

Fixes wakeup mechanism of LinuxWatchService and introduces a test

Reviewed-by: alanb
2 files changed