correct locking and partitionsSpec