Implement Database Consistency in Golang with MySQL Locks