Refactor passing record to procedure functions like `on_fail` (#301)
Refactor passing record to procedure functions like `on_fail` (#301)

* factor the deepcopy up to _exec_procedure_func so that the scope of the record is contained at one point.

* remove extra space and add copy note to _exec_procedure_func

google/mobly,l-meng/mobly