fix: wakeup only if readers are waiting

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>