improve astar, add lock for crick and under_thump