sha1_file.c: introduce get_max_fd_limit() helper