In-situ hardening hydroxyapatite-based scaffold for bone repair