session-func.c (set_bool_opt): Fix the check for value type.

* src/session-func.c (set_bool_opt): Fix the assertion for the third
  argument: expect a boolean value instead of an integer value.