A core data generic class that allows you, using in a multi thread environment without read/write problems