Remove redundant lock in getchaintips.