xbps-rindex: use a POSIX named semaphore to avoid concurrency issues.