Single-molecule spectroscopy reveals dynamic allostery mediated by the substrate-binding domain of a AAA+ machine