HDFS-7399. Lack of synchronization in DFSOutputStream#Packet#getLastByteOffsetBlock() (Contributed by Vinayakumar B)

(cherry picked from commit 6783d17fcf5b25165767888f756a6b7802ab1371)