fixed possible concurrency bug when registering component beans