Do not hold the object lock while we call methods on peer elements as this can lead to deadlocks. Fixes #608179