Locking a slice
Locks the passed slice name and revision in order to provide consistency for concurrent writes of
the same slice name and revision:
- Lock the passed slice name and revision.
- Check for available space to write the slice.