Ninja Multi-Config: Correctly generate POST_BUILD custom targets

Fixes: #22096
51 jobs for !6040 with ninja-multi-custom-target-post-build in 29 minutes and 7 seconds (queued for 2 seconds)
latest merge request