Writing dirty items into a segment wasn't protected by locking. It's
not racing with item dirtying, bit it's absolutely racing with reads
while modifying the rbtree. And shrinking will be modifying the item
cache at any old time in the future.
Signed-off-by: Zach Brown <zab@versity.com>