lib/generic/queue: remove a ssize_t cast

The Alpine-based Docker image wouldn't compile.
I can't see a reason for the cast now - it's a sum of compile-time
constants, and very unlikely to overflow on changes in code or platform.
25 jobs for fixup-docker
in 4 minutes and 38 seconds and was queued for 2 seconds