Fix concurrent getOrGenerate bug. Closes #85