Resolving discussions multiple times could lead to multiple system notes being created
When all discussions of a merge request are resolved by a first user, but the page hasn't updated for another user the second user can still resolve the discussions that appear open to them.
This happened in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22866/
Steps to reproduce
- User A: Create some discussions on a merge request, leave the page open
- User B: Resolve all the discussions
- User A: Resolve the discussions
- Multiple system notes are created