Minor formating and typos fixes
Set unavailableIdsLock as mutable and as Router::isElementAvailable as const