Fix issue when local properties pass from parent to child thread
Add barrier for local properties unit test and fix some styles
Merge pull request #937 from jerryshao/localProperties-fix

Fix PR926 local properties issues in Spark Streaming like scenarios