Fix logs -f hanging on stopped containers

Fixes #7020

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Test for following logs for stopped container

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Merge pull request #7629 from LK4D4/fix_follow_hang_on_stop

Fix logs -f hanging on stopped containers