Added thread safe comment to docs