Phase synchronization in bidirectionally coupled optothermal devices