MDL-41540 remove use of $USER

by quiz_create_attempt internally.