vm: expose execution_frame::wait and is_ef; small performance tweaks