Mer: Fix setting debugged process' environment

Fixes dabab8a (Merge branch 'mer-3.1' into next)

See 2259909 (Introduce the concept of a "device process".)

One conequence is that this makes debugging work again.

Signed-off-by: Martin Kampas <martin.kampas@jolla.com>