[mr3257] More safe iterator deletion in realmd