Constructs a new TSemaphore with the specified number of permits.
TSemaphore
Constructs a new TSemaphore with the specified number of permits, immediately committing the transaction.