L&G agrees GBP40m loan to Thames Valley Housing Association