record-btrace: add to_wait and to_resume target methods.