container: Remove duplication for shim and process handling.
container: Remove duplication for shim and process handling.

Added createShimProcess() to remove duplicated code blocks.

Signed-off-by: James O. D. Hunt <348fbaadfbada55ea105602bf5609e23ac1c4898@intel.com>

containers/virtcontainers,containers/virtcontainers