utils: Add boot hook to set stdout property on DT machines