BS-9048, dix dead lock using an update query for profile: update is called first so we have an exclusive lock first