Distributed lock testing