Replace methods of Genode::Fifo returning pointers with methods which call lambdas with references. Ref #3135
Issue #1987 Issue #3125
Issue #2747.