Fixes race condition in resources

See #1378.
I know you didn't add this, but any idea what `self.is_unique` is supposed to mean?  It appears to currently effectively be "has been `.save()`d exactly once, and without having its group id manually set" which is strange and seems like it is probably incorrect for whatever it was intended to be doing.