fix flock and env vars in get_confs

Signed-off-by: Mattias Andrée <maandree@operamail.com>