[Git][openldap/openldap][master] ITS#10328 librewrite: fix substitution cleanup