Fix lock reference in miner.h
Summary: Fix syntax error introduced in D3307.
Test Plan:
make check
Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix
Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D3351