Fix permission errors when using Kube attach and non-root user
What does this MR do?
Fix a bug described at #27107 (closed)
Why was this MR needed?
Allows one to use attach-based execution for a K8s runner with a non-root user.
What's the best way to test this MR?
Details are provided in #27107 (closed)