Progress: Continue changes to locking, improve debugging and error printing.
A recent work in progress commit resulted in the actions being incorrectly initialized.
This presents a good opportunity to improve the error reporting with the specific file and line number of the error.
This behavior can be disabled by turning off debug during build time.
The debug is enabled using the `debug` build setting mode.
This `debug` build settings mode is enabled by default.
Move the `controller_rule_instance_perform()` logic out and then collapse the `controller_rule_instance_perform_details()` functions into `er_rule_instance_perform()` functions to shorten their names.
This addresses some more locking issues resulting from many of the recent threading changes.
There is still a lot more work to do.
Particularly, there is addressing the problem causes the actions to be empty.