Revisited locks in s5fs. Seem to work now