mutex around one-off sql stmts from sofia