Uniform mutex lock validation