Jake Leake scored his first goal for Oldham as they stretched their unbeaten run to nine games with a 1-0 League Two victory over struggling Harrogate.