session: explicitly use octal input

Change-Id: I6454d31b6f7ff12b801905b221eed1495562e919
session: fix umask

Change-Id: I2bc670af7c31009c141068029a96e511a49bcc3a