Avoid locking in trap context