Joining of tubes by internal mechanical locking