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.
should we unlock here? We unlock before renaming.