We now guard modifications of the cached entity callbacks list with a synchronization block. Original pull request: #446.