Thread safety analysis: fix warning.