Replicated filesystem using distributed mutual exclusion algorithm