Like commit d258fb02 ("http: More useful setTimeout API on server") but this time for the https module. Fixes #5361.