Exact solution of the sp(4) integrable spin chain with generic boundaries