Update thread safety documentation