Add locks to the poll method so that commands sent via an asyn record can't interfere with the polling.