Polish some minor concurrency mistakes

Description

Issue to collect some minor issues identified by the ThreadSafe static analysis tool

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Minor
Configure