Refactor the code to insert a user into a function.

http://w1.fi/cgit/hostap/tree/src/eap_server/eap_sim_db.c:db_add_pseudonym().

Signed-off-by: Thiago Farina <tfarina@chromium.org>