kprobes: Remove redundant text_mutex lock in optimize