3927: add NOT NULL constraint to User.owner_uuid

Added a migration setting all users with null owner_uuid to
system_user_uuid, and enforced a NOT NULL constraint on that column.
Merge branch '3927-user-owner-uuid-not-null'

Closes #3927.