Rewrite part of server-CreateProcess_ACLs in order to fix incorrect error codes and memory leaks.