Replace `NSRecursiveLock` with dispatch queue in `RKEntityByAttributeCache`. refs #1232