Factor out the building of the delay and revoke scripts from NewLocalCommitScriptTree so that they can be re-used later on.
lnutils.SyncMap