fix lockblock bug in checkpoint thread

when do check point work, if exception happens,  blocks of the file will not be unlocked and related OutputStream & InputStream will not be closed.
Yes, I missed that. Thanks!