Lock and unlock access to a shard per bucket; when a client is writing to it