For the LFSCK modification, if only updates single object, or the
objects to be updated reside on the same server, in spite of local
or remote, then try to locate the object(s) against the bottom (OSD
or OSP) device; otherwise, there will be some update(s) on the local
server, and others on remote server, then either locate the object(s)
against LOD device or use two transaction for the modification.
Similarly, the transaction handle will be created on the proper device
corresponding to the object(s).
This patch also fixes some memory leak issues caused by using wrong
device for remote modification, one of the reason for LU-6138.