resourceloader: Make doRequest() an inline helper for batchRequest()