Ensure unflushed messages are not deleted prematurely by expire based segment cleanup

Signed-off-by: Alexey Ozeritsky <aozeritsky@yandex-team.ru>
 * [KAFKA-1365] patch