Allow increasing the max without recreating the semaphore.