Fixed #12982 -- Added a ``get_or_set`` method to the BaseCache backend.

https://code.djangoproject.com/ticket/12982
Could we be a bit more precise and say which bundled backends suffer from a race condition and which do not? I think "can suffer from a race condition" may be slightly better wording. It would be helpful to explain a bit more as done on the ticket for novice readers.