Interrupt safe {g|s}et_socket_active_status

This fixes potential of ISR on get_socket_active_status and get_socket_active_status operations