Update DirectoryTailSource.java

There is a multi-thread synchronized bug during application.  then I fixed it and edit the source file here.   if any question ,please email to tiangang1126@126.com.     Nice to discuss with all of you .   Thank you for your participation.    --tqli