Description
I noticed that there are a couple cases where some of the getters for acquiring pending metrics (and discarded count too) from subscriptions are getting blocked waiting on the pending cursor mutex in the subscription on a busy broker. This lock is unnecessary as the cursors already are synchronized internally so we should be able to get the metrics from the cursors without having to wait for the mutex which is used to prevent concurrent access for things such as dispatch, message send etc.