Allow setting custom ExclusiveLock instance
fix tester compatibility