Merge "fix the threading issue for setBuffercount()" into kraken