Remove unsafe code from get_lsn()