Swift ReadWriteLock Resources