[PATCH 6.5 692/739] block: fix pin count management when merging same-page segments