p_open: make flags volatile

fml