loader: remove hash from compileQueue if build fails
loader: remove hash from compileQueue if build fails

Otherwise, the loader erroneously thinks that the template has been built,
while it actually needs to be rebuilt again. Note that if the template cannot
be built, we do not have any logic to signal to other waiters on this queue that
the build failed and that said waiters should try to rebuild the program; all
waiters will fail as well. We also do not have retry logic if endpoints are not
regenerated, so all endpoints which were waiting on a given template to be
compiled will not be rebuilt. The retry logic is out of the scope of this
commit.

Fixes: 561100e141

Related-to: #8817

Signed-off by: Ian Vernon <ian@cilium.io>

cilium/cilium,michi-covalent/cilium,cilium-team/cilium,cilium/cilium,michi-covalent/cilium,tgraf/cilium,tgraf/cilium,cilium/cilium,tklauser/cilium,tgraf/cilium,tklauser/cilium,tgraf/cilium,michi-covalent/cilium,cilium/cilium,tgraf/cilium,tklauser/cilium,cilium-team/cilium,cilium/cilium,tklauser/cilium,michi-covalent/cilium,michi-covalent/cilium,tgraf/cilium,tklauser/cilium