Added some locks (one calssifier should not be used with several clients at one time)