Use double check in synchronization.