Add locking for ext methods class