commit: allow to close branch when committing change over a closed head

Otherwise, an explicit other commit become necessary, which seems both silly and
verbose.

This is useful when merging closed heads on the same branches, for example when
merging multiple repositories together.
14 jobs for topic/stable/fix-close in 56 minutes and 4 seconds (queued for 7 seconds)