Elphinstone, James, Sir, Lord Balmerino (1606), Secretary of State in Scotland