tweak thread locking