Theano.shared in parallel loop

@junpenglao I was planning on parallelizing the for loop so that I would be modifying X and submitting it in each thread. My hope was to avoid having several simultaneous theano locks that way. Would that work?