Fix infinite loop, when doing WRITE SAME on file-backed LUN.

MFC after:	3 days

(cherry picked from commit 55374f2c30a42a16311a4bb52d4c49e6ad7059c1)
(cherry picked from commit cc6c179ca950e2d48b56d0463971fdd328c4638e)