[PATCH 5.4 207/215] block: fix splitting segments on boundary masks