Flexible fiber in interaction with a dense granular flow close to the jamming transition