Select for update

use `SELECT .. FOR UPDATE` to avoid deadlock or foreign key error around `REPLACE INTO object_cluster_map`