improved locking for getting ide backend