Fix: Potential endless recursion bug

Fix: Potential endless recursion bug if `deinit_callback` member
is set to `ws_value_deinit`.