threads: add ofScopedLock