Add configurability of partition-lock count (used for writes)