Minimal and Mechanistic Conditions for Behavioral Self-Awareness in LLMs