MFC r287208, r287216: Make it buildable with WITH_OPENLDAP, again.
MFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdalbuild with high -j concurrency.