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:
  1. Lock the passed slice name and revision.
  2. Check for available space to write the slice.