Locking in ExpDict.cc

There were some functions in ExpDict.cc that were not properly locked before. Locking was done in them
Made sdaiSelect::CanBe( BASE_TYPE ) thread safe.