Reconcile register overwrite confirmation and kbd macros
Give full control over overwrite confirmation to callers of this
function. Provide a helper function that such callers can use to
adhere to standard behavior, and in particular skip confirmation while
defining/executing keyboard macros.