WFLY-3337 Server should limit number of workers based on available FD's

Apply Tomaz's change to master as well