Support/Unix: use ScopedLock wherever possible