Added thread safety note to documentation.