[SQUASH ME] netapi: make current_thread registration inline