Properly lock cs_main in rest_block