Fix the output stream flush operation
Fix setting metadata in the mock cdmi client